<?php
/** 
 * $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/plugins/function.pncSetBacklinkPoint.php,v $
 * $Author: pcornelissen $
 * $Revision: 1.2 $
 * $Date: 2005/03/14 12:52:49 $
 *
 * Type: Function
 *
 * sets a session variable for jumping back during checkout if something fails
 *@return nothing
 */
function smarty_function_pncSetBacklinkPoint($params, &$smarty)
{
    extract($params);

    $baseurl = pnGetBaseURL();
//    $baseurl = substr( $baseurl, 0, strlen( $baseurl ) - 1 );
    $baseurl .= strstr($GLOBALS['REQUEST_URI'],"index.php");
    pnSessionSetVar( 'PNCBacklinkPoint', $baseurl );
}
?>
